from applications.extensions import ma
from marshmallow import fields
from .ye_operation_setting import YeOperationSettingSchema


class YeOperationDetectionSchema(ma.Schema):
    id = fields.Integer()
    alias = fields.Str()
    remarks = fields.Str()
    picture_url = fields.Str()
    priority_level = fields.Integer()
    feature_point = fields.Integer()
    create_time = fields.DateTime()
    update_time = fields.DateTime()
    group_id =  fields.Integer()

    operation_list = fields.Nested(YeOperationSettingSchema, many=True)
